package com.addcn.texas.view.components{

    import fl.controls.listClasses.CellRenderer;
import flash.text.TextFormat;
	import flash.text.TextFormatAlign;
	
    public class MultiLineCell extends CellRenderer
    {
        
        public function MultiLineCell()
        {    
            textField.wordWrap = true;
            textField.autoSize = "center";
        }
        override protected function drawLayout():void {             
            textField.width = this.width;
            super.drawLayout();
        }
				
		override protected function drawBackground():void {			
			var format:TextFormat = new TextFormat();
			format.color = 0x000000;		
			format.align = TextFormatAlign.CENTER;
			format.size=12;
			format.font="";
			setStyle("textFormat",format);
			super.drawBackground();
	   }
    }
}
